package com.ccdc.lbcmsystem.mapper;

import com.ccdc.lbcmsystem.pojo.FeedBack;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@Mapper
@Component
public interface FeedBackMapper {

    //新增
    int insertFeedBack(@RequestParam("feedBack") FeedBack feedBack);

    //查询所有
    List<FeedBack> queryList();

    //根据ID查找
    FeedBack queryFeedBackById(@RequestParam("id") Integer id);

    //根据ID修改
    int updateFeedBack(@RequestParam("id") Integer id,@RequestParam("status") String status);

    //根据状态和反馈用户和主题查询
    List<FeedBack> searchFeedBack(@RequestParam("name") String name, @RequestParam("status") String status, @RequestParam("theme") String theme);
}
